fixes #3, fixes #4, writing relative path and handling no testemrequire in project