support for arbitrary mounts

also move the extra "is this a rails dir" check; needs to be
re-thought-out if this project is going to get more agnostic

plus it was ugly