filepath now works if the process isn't in the root directory of the rails project