fixed stupid typo in last commit
fixes #214 when path to file does not exist, retry with correct case by getting corresponding project_name from database