fixed postinst script to work with any username
it used to work only with the ubuntu user, which is the common one for AWS VMs
added curl as a dependency
it is used to fetch the composer.phar script