Okay, I rewrote the entire program and used a Direct permalink instead. this seemed to solve the issue. For those who have trouble with this.

Use a direct Permalink to the file and it should be a absolute path.