Changed fs operation to use async operations

Hopefully this change will fix Heroku :)