Start using lib directory
Fix permisions again