Fix regression of default behaviour in Command.project_name

Needed an `os.abspath` in there. Added more tests, too.