bug fix: moved expand_path to operate on the file path rather than the returned value from File.read.