Added code to check path on Heroku server