Change to get last current command from history instead of BASH_COMMAND