Fix while loop so that basedir is detected in current dir
Fix while loop so that basedir is detected in current dir

There was a problem with the logic in the while loop that detects
the base dir - it should first look in the current directory,
otherwise you can't build in a directory with local settings because
it will always climb up and find .mvn in a parent directory (e.g. user's
home).

cstamas/maven,olamy/maven,mcculls/maven,apache/maven,cstamas/maven,olamy/maven,cstamas/maven,apache/maven,mcculls/maven,olamy/maven,mcculls/maven,apache/maven