app.rb: Fix bug when bad path given.