Removed home directory ~ was causing script problems.