Fix bug with auto-detect project name, when there is dot signs in project name