Fix #1067 (merged from [4240/trunk]): agavi.php erroneously always assumes it is a symlink if project.directory is empty