Remove get correct location code

It's not needed. Chances that this file will be run outside of
repository are very low.
Remove check path code
Add more options

Now this script can also be started with attribute.