Fix a problems with $action not looking at the right files/folders