yuck :/ Not sure if there is a better way to do this though if we are passing in the full path to the file.