add install file
try this way of deriving dir