adopt environment variables
remove redundant log
Use hudson.FilePath to take remote file into account