expanduser on paths in file

Added functionality to expand user variables in paths for ```modules.find``` and ```states.find```