If you're getting variable not defined, have you missed the quotes?

Yes, you could use the documents path but environ is better and should work.