Update npm start command to the correct directory.
Refactor the application path parsing.