Small bug fix to prepend file. If statement now works