Use the project name as default target or the first provided argument

Hi, love the script, helped me a lot. 

Per default the main target is named after the project, so the script now uses this target. As an alternative, you can provide the target name as an argument.

I am no ruby expert, so there might be a better way to achieve this.