modified build file to automatically create lib directory