Detect bash profile file correctly