Use the last name folder as the project name
Use path.basename for getting the last portion of path
Replace method for getting project name with one line of code
Merge pull request #16 from oivoodoo/master

Use the last name folder as the name of the project.