Fixed bug preventing app:name from completing successfully

Looks like some recent refactoring broke the `php composer app:name` command. When run it was failing because it was attempting to rename a file which did not exist. It also did not rename all instances of the app namespace.