Ive tried so much to get it working

You should expand your partition before starting the script, my friend …
Take a look to the build instructions in this topic:

Regards,