there should be absolute path in PATH variable.

There should be absolute path in PATH variable.
chmod may work on any path