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

add fix for username also