right. should fix this.
Thing is, that the paths in the dev env and admin are likely to be different, and it doesn't seem that '~' works correctly.
Ideas on how to generalize this? 
Could replace this with semantics that will involve evaluating an expression. The expression will be evaluated on the client  (CLI)  not the server, with the  local users's permissions - so it's not really a security risk.