Fix basepath

Improved basepath for users that have a different config of composer.