Added mkdir -p to create lib folder if it doesn't exist.