Fix #1155 (merged from e6a18647c2fef9e9e5427e5e94eeba03af7a166e): agavi.php erroneously always assumes it is a symlink if project.directory is empty