Fixed deploying in non-root directories