Extract current directory as constant
Avoid unnecessary `else` clause after `return`
Rename variable for readability