updated to allow non relative paths, the path is only concidered relative to the Rail.root if it doesn't start with /