After changes in 92f0a8583a, the dockerfile parameter is igored if the (local) work directory's name ends in `.git`. This commit fixes the regression and adds more tests. Signed-off-by: Monika Kairaityte <monika@kibit.lt>
92f0a8583a