Found a bug with the ~ functionality. Added dir functionality.