Bugfix for empty source directory

This was causing a startup crash if the initial CWD was empty.