Use first arguments rather than $HOME, add lib folder to share